package cn.itcast.feign.config;

import cn.itcast.feign.client.fallback.UserClientFallback;
import feign.Logger;
import org.springframework.context.annotation.Bean;
/**
 * @author mrchen
 * @date 2022/6/11 16:08
 */
public class FeignConfig {
    @Bean
    public Logger.Level level(){
        //     打印简单的feign日志
        //   NONE
        //   BASIC
        //   HEADER
        //   FULL
        return Logger.Level.BASIC;
    }

    @Bean
    public UserClientFallback userClientFallback(){
        return new UserClientFallback();
    }
}
